package com.sh.守护线程;

/**
 * @Auther: sh
 * @Version 1.0
 * @Description:
 */
public class Test {
    public static void main(String[] args) {

        MyThread1 myThread1 = new MyThread1();
        MyThread2 myThread2 = new MyThread2();
        myThread1.setName("女神");
        myThread2.setName("备胎");
        myThread2.setDaemon(true);
        myThread1.start();
        myThread2.start();

    }
}

